package com.movie.api.context;

public class LoginContext {
    // 存储用户姓名
    private static ThreadLocal<String> name = new ThreadLocal<>();

    public static String getName() {
        return name.get();
    }

    public static void setName(String name) {
        LoginContext.name.set(name);
    }

    public static void clear() {
        name.remove();
    }

}
